<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body style="background: url(images/111.png);background-size:100% 100% ; background-attachment: fixed">
  <font color=fff000>
    <%  if(session.getAttribute("username")!=null){
    		if(session.getAttribute("tag").equals(1)){		
    			response.sendRedirect("xuancan.jsp");
    		}else{
    			response.sendRedirect("guanli.jsp");
    		}	
    	}
    %>
    <center><form action="Login" method="POST">
    	<h2>欢迎光临，请登录食堂管理系统</h2>
    	<h2>用户名：<input type="text" name="username"><br></h2>
    	<h2>密码 ： <input type="password" name="password"><br></h2>
    	<input type="submit" value="提交">
    </form></center></font>
  </body>
</html>
